package com.panopset.gui.container;

import com.panopset.gui.NumericDocument;

/**
 * Panopset numeric only field.
 *
 * @author Karl Dinwiddie
 *
 */
public class PanNumericOnlyField extends PanTextField {

    /**
     * @param cols
     *            Columns.
     * @param borderTitle
     *            Border title.
     * @param toolTipText
     *            Tool tip text.
     * @param defaultValue
     *            Default value.
     */
    public PanNumericOnlyField(final int cols, final String borderTitle,
            final String toolTipText, final String defaultValue) {
        super(cols, borderTitle, toolTipText, defaultValue);
        getInnerComponent().setDocument(new NumericDocument());
    }

}
